home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / computer / casio_st / prog_fx / oisac2 / l_5600.txt < prev    next >
Text File  |  1994-03-01  |  997b  |  27 lines

  1. 5 ONERRORGOTO900
  2. 20 MODE8:DIM:a=0:b=0:c=0:h=0:d=0:c$=CHR$(5)
  3. 30 CLS:PRINT"Area (triangle)";TAB(0);"1:ah/2  2:ab¥siné/2  3:f(a,b,c)";:LOCATE0,0:LOCATE0,1
  4. 40 w=ASC(INPUT$(1,@))-48:IFw<1 ORw>3 THEN40
  5. 50 ONw GOTO100,200,300
  6. 100 CLS:PRINT"ah/2        a:base  h:height";
  7. 110 s$="a":z=a:GOSUB500:a=z
  8. 120 s$="h":z=h:GOSUB500:h=z
  9. 130 z=a*h/2:GOTO400
  10. 200 CLS:PRINT"ab¥siné/2       a:b:side";
  11. 210 s$="a":z=a:GOSUB500:a=z
  12. 220 s$="b":z=b:GOSUB500:b=z
  13. 230 s$="é":z=d:GOSUB500:d=z:IFSINd<0 THEN230
  14. 240 z=a*b*SINd/2:GOTO400
  15. 300 CLS:PRINT"û(s(s-a)(s-b)(s-c)),s=(a+b+c)/2";
  16. 320 s$="a":z=a:GOSUB500:a=z
  17. 330 s$="b":z=b:GOSUB500:b=z
  18. 340 s$="c":z=c:GOSUB500:c=z
  19. 350 s=(a+b+c)/2:z=SQR(s*(s-a)*(s-b)*(s-c))
  20. 400 IFz<0 THEN450
  21. 410 LOCATE0,1:PRINTc$;"Area =";z;:z$=INPUT$(1,@):GOTO30
  22. 450 LOCATE0,1:PRINTc$;"not found";:z$=INPUT$(1,@):GOTO30
  23. 500 LOCATE0,1:PRINTc$;s$;"=";z;"?";:INPUT@42;z:LOCATE0,0:IFz<0 THEN500 ELSERETURN
  24. 900 IFERR=1 THENCLS:ONERRORGOTO0
  25. 910 IFERL=500 THENRESUME500
  26. 920 RESUME450
  27.